The current ptrace code is traversing the page table structures to
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 21 Mar 2006 10:29:17 +0000 (11:29 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 21 Mar 2006 10:29:17 +0000 (11:29 +0100)
commit0b35103d5483e20b52c4652145f2e8bcaa832e4e
tree2bf39705702acf87c34a96174322de66565d2a58
parent6e159fba3f0236fbcc65ba89f12cf07425b1f7aa
The current ptrace code is traversing the page table structures to
guest guest physical address, even when the guest paging is disabled.
The gdbserver-xen tries to access guest pdes & ptes to map memory of
hvm guest being debugged; and it gets a seg-fault because guest has not
setup it's paging yet. The attached patch adds guest paging state check,
so that the map_domain_va() can get the correct guest physical address
from guest va.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
tools/libxc/xc_ptrace.c